<?php


   class DashangAction extends CommonAction{
   
      public function index(){
	  
	  
	     $time=strtotime(date("Y-m-d"));
		 
		 $where['time']=array('gt',$time);
		 
		 $num=M('saomiao')->where($where)->count();
		 
		 if($num=="" or $num<0){
		 
		    $num=0;
		 
		 }
		 
		 $this->num=$num;
	  
	     $this->re=$this->page('saomiao',10,'id desc');
	  
	     $this->display();
	  
	  
	  }
   
   
   
   
   }